home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Tele / A / ARACommander2.0demo.sit / ARACommander 2 ƒ / sample connection script < prev   
MacBinary  |  1993-12-27  |  2.6 KB  |  [TEXT/ToyS]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: sample connection script

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Dec 27 19:46:16 1993, modified Mon Dec 27 19:46:16 1993, creator 'ToyS', type ASCII, 2110 bytes "sample connection script" , at 0x8be 328 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dexmagic Picasso 64 Image default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ToyS]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 73 61 6d 70 6c 65 | 20 63 6f 6e 6e 65 63 74 |..sample| connect|
|00000010| 69 6f 6e 20 73 63 72 69 | 70 74 00 00 00 00 00 00 |ion scri|pt......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 54 6f 79 | 53 01 00 00 00 00 00 00 |.TEXTToy|S.......|
|00000050| 00 00 00 00 00 08 3e 00 | 00 01 48 a9 45 32 58 a9 |......>.|..H.E2X.|
|00000060| 45 32 58 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |E2X.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 63 a4 00 00 |........|....c...|
|00000080| 74 65 6c 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |tell app|lication|
|00000090| 20 22 41 52 41 53 63 72 | 69 70 74 65 72 22 0d 09 | "ARAScr|ipter"..|
|000000a0| 0d 09 28 2a 20 53 65 74 | 20 73 6f 6d 65 20 62 61 |..(* Set| some ba|
|000000b0| 73 69 63 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 70 |sic conn|ection p|
|000000c0| 61 72 61 6d 65 74 65 72 | 73 20 28 52 65 71 75 69 |arameter|s (Requi|
|000000d0| 72 65 64 20 69 66 20 61 | 63 63 65 73 73 20 69 73 |red if a|ccess is|
|000000e0| 20 6e 6f 74 20 47 75 65 | 73 74 20 41 63 63 65 73 | not Gue|st Acces|
|000000f0| 73 29 20 2a 29 0d 09 53 | 65 74 20 52 65 67 69 73 |s) *)..S|et Regis|
|00000100| 74 65 72 65 64 55 73 65 | 72 0d 09 53 65 74 20 55 |teredUse|r..Set U|
|00000110| 73 65 72 4e 61 6d 65 20 | 22 74 65 73 74 65 72 22 |serName |"tester"|
|00000120| 20 28 2a 20 79 6f 75 72 | 20 6e 61 6d 65 20 2a 29 | (* your| name *)|
|00000130| 0d 09 53 65 74 20 55 73 | 65 72 50 61 73 73 77 6f |..Set Us|erPasswo|
|00000140| 72 64 20 22 74 65 73 74 | 65 72 22 20 28 2a 20 79 |rd "test|er" (* y|
|00000150| 6f 75 72 20 70 61 73 73 | 77 6f 72 64 20 2a 29 0d |our pass|word *).|
|00000160| 09 0d 09 53 65 74 20 50 | 68 6f 6e 65 4e 75 6d 62 |...Set P|honeNumb|
|00000170| 65 72 20 22 37 37 39 2d | 37 37 36 30 22 20 28 2a |er "779-|7760" (*|
|00000180| 20 79 6f 75 72 20 70 68 | 6f 6e 65 20 6e 75 6d 62 | your ph|one numb|
|00000190| 65 72 20 2a 29 0d 09 0d | 09 28 2a 20 53 65 74 20 |er *)...|.(* Set |
|000001a0| 52 65 64 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |Redial c|haracter|
|000001b0| 69 73 74 69 63 73 20 28 | 4f 70 74 69 6f 6e 61 6c |istics (|Optional|
|000001c0| 29 20 2a 29 0d 09 53 65 | 74 20 52 65 64 69 61 6c |) *)..Se|t Redial|
|000001d0| 54 69 6d 65 73 20 31 30 | 0d 09 53 65 74 20 52 65 |Times 10|..Set Re|
|000001e0| 64 69 61 6c 49 6e 74 65 | 72 76 61 6c 20 31 30 0d |dialInte|rval 10.|
|000001f0| 09 0d 09 28 2a 0d 09 09 | 53 65 74 20 73 6f 6d 65 |...(*...|Set some|
|00000200| 20 4d 6f 64 65 6d 20 63 | 68 61 72 61 63 74 65 72 | Modem c|haracter|
|00000210| 69 73 74 69 63 73 20 28 | 4f 70 74 69 6f 6e 61 6c |istics (|Optional|
|00000220| 29 2e 0d 09 09 4d 6f 64 | 65 6d 20 63 68 61 72 61 |)....Mod|em chara|
|00000230| 63 74 65 72 69 73 74 69 | 63 73 20 6e 6f 74 20 73 |cteristi|cs not s|
|00000240| 65 74 20 64 65 66 61 75 | 6c 74 20 74 6f 20 74 68 |et defau|lt to th|
|00000250| 6f 73 65 0d 09 09 6c 61 | 73 74 20 73 65 74 2c 20 |ose...la|st set, |
|00000260| 6f 72 20 74 68 6f 73 65 | 20 73 65 74 20 77 69 74 |or those| set wit|
|00000270| 68 20 52 65 6d 6f 74 65 | 20 41 63 63 65 73 73 20 |h Remote| Access |
|00000280| 53 65 74 75 70 20 63 6f | 6e 74 72 6f 6c 20 70 61 |Setup co|ntrol pa|
|00000290| 6e 65 6c 2e 0d 09 2a 29 | 0d 09 53 65 74 20 53 70 |nel...*)|..Set Sp|
|000002a0| 65 61 6b 65 72 4f 6e 0d | 09 53 65 74 20 50 6f 72 |eakerOn.|.Set Por|
|000002b0| 74 4e 61 6d 65 20 22 4d | 6f 64 65 6d 20 50 6f 72 |tName "M|odem Por|
|000002c0| 74 22 0d 09 0d 09 28 2a | 20 53 65 74 20 61 20 73 |t"....(*| Set a s|
|000002d0| 6f 75 6e 64 20 74 6f 20 | 70 6c 61 79 20 61 74 20 |ound to |play at |
|000002e0| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 28 4f 70 74 69 |connecti|on (Opti|
|000002f0| 6f 6e 61 6c 29 20 2a 29 | 0d 09 53 65 74 20 43 6f |onal) *)|..Set Co|
|00000300| 6e 6e 65 63 74 53 6f 75 | 6e 64 20 22 53 6f 73 75 |nnectSou|nd "Sosu|
|00000310| 6d 69 22 0d 09 0d 09 28 | 2a 20 53 65 74 20 63 6f |mi"....(|* Set co|
|00000320| 6e 6e 65 63 74 69 6f 6e | 20 74 6f 20 64 69 73 63 |nnection| to disc|
|00000330| 6f 6e 6e 65 63 74 20 61 | 66 74 65 72 20 69 64 6c |onnect a|fter idl|
|00000340| 65 20 66 6f 72 20 6e 20 | 6d 69 6e 75 74 65 73 20 |e for n |minutes |
|00000350| 6f 72 20 73 6f 20 28 4f | 70 74 69 6f 6e 61 6c 29 |or so (O|ptional)|
|00000360| 20 2a 29 0d 09 53 65 74 | 20 49 64 6c 65 44 69 73 | *)..Set| IdleDis|
|00000370| 63 6f 6e 6e 65 63 74 20 | 31 0d 09 0d 09 28 2a 0d |connect |1....(*.|
|00000380| 09 09 4d 61 6b 65 20 74 | 68 65 20 43 6f 6e 6e 65 |..Make t|he Conne|
|00000390| 63 74 20 63 61 6c 6c 2e | 20 41 20 43 6f 6e 6e 65 |ct call.| A Conne|
|000003a0| 63 74 20 69 73 20 63 61 | 6c 6c 65 64 20 61 73 79 |ct is ca|lled asy|
|000003b0| 6e 63 68 72 6f 6e 6f 75 | 73 6c 79 2c 0d 09 09 6d |nchronou|sly,...m|
|000003c0| 65 61 6e 69 6e 67 20 74 | 68 61 74 20 6f 74 68 65 |eaning t|hat othe|
|000003d0| 72 20 70 72 6f 63 65 73 | 73 65 73 20 63 61 6e 20 |r proces|ses can |
|000003e0| 67 65 74 20 43 50 55 20 | 74 69 6d 65 20 77 68 69 |get CPU |time whi|
|000003f0| 6c 65 20 77 65 0d 09 09 | 6c 6f 6f 70 20 75 6e 74 |le we...|loop unt|
|00000400| 69 6c 20 77 65 20 66 69 | 6e 64 20 74 68 61 74 20 |il we fi|nd that |
|00000410| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 70 |the conn|ection p|
|00000420| 72 6f 63 65 73 73 20 68 | 61 73 20 63 6f 6d 70 6c |rocess h|as compl|
|00000430| 65 74 65 64 2e 0d 09 09 | 0d 09 09 52 65 74 75 72 |eted....|...Retur|
|00000440| 6e 73 20 30 20 69 66 20 | 63 6f 6e 6e 65 63 74 69 |ns 0 if |connecti|
|00000450| 6f 6e 20 73 74 61 72 74 | 65 64 2c 0d 09 09 6f 72 |on start|ed,...or|
|00000460| 20 31 20 69 66 20 61 6c | 72 65 61 64 79 20 63 6f | 1 if al|ready co|
|00000470| 6e 6e 65 63 74 65 64 2e | 0d 09 2a 29 0d 09 69 66 |nnected.|..*)..if|
|00000480| 20 28 43 6f 6e 6e 65 63 | 74 29 20 3d 20 30 20 74 | (Connec|t) = 0 t|
|00000490| 68 65 6e 0d 09 09 0d 09 | 09 28 2a 0d 09 09 09 43 |hen.....|.(*....C|
|000004a0| 61 6c 6c 20 47 65 74 43 | 6f 6e 6e 65 63 74 52 65 |all GetC|onnectRe|
|000004b0| 73 75 6c 74 43 6f 64 65 | 20 69 6e 20 61 20 72 65 |sultCode| in a re|
|000004c0| 70 65 61 74 20 6c 6f 6f | 70 2e 0d 09 09 09 0d 09 |peat loo|p.......|
|000004d0| 09 09 52 65 74 75 72 6e | 73 3a 61 20 6e 65 67 61 |..Return|s:a nega|
|000004e0| 74 69 76 65 20 6e 75 6d | 62 65 72 20 69 66 20 61 |tive num|ber if a|
|000004f0| 6e 20 65 72 72 6f 72 20 | 6f 63 63 75 72 65 64 0d |n error |occured.|
|00000500| 09 09 09 09 09 30 20 69 | 66 20 63 6f 6e 6e 65 63 |.....0 i|f connec|
|00000510| 74 69 6f 6e 20 73 75 63 | 63 65 73 66 75 6c 0d 09 |tion suc|cesful..|
|00000520| 09 09 09 09 31 20 69 66 | 20 73 74 69 6c 6c 20 69 |....1 if| still i|
|00000530| 6e 20 70 72 6f 63 65 73 | 73 20 6f 66 20 63 6f 6e |n proces|s of con|
|00000540| 6e 65 63 74 69 6e 67 0d | 09 09 09 09 09 32 20 69 |necting.|.....2 i|
|00000550| 66 20 69 6e 20 72 65 64 | 69 61 6c 20 6d 6f 64 65 |f in red|ial mode|
|00000560| 0d 09 09 2a 29 0d 09 09 | 72 65 70 65 61 74 0d 09 |...*)...|repeat..|
|00000570| 09 09 73 65 74 20 63 6f | 6e 6e 65 63 74 52 65 73 |..set co|nnectRes|
|00000580| 75 6c 74 20 74 6f 20 28 | 47 65 74 20 43 6f 6e 6e |ult to (|Get Conn|
|00000590| 65 63 74 52 65 73 75 6c | 74 43 6f 64 65 29 0d 09 |ectResul|tCode)..|
|000005a0| 09 09 69 66 20 28 63 6f | 6e 6e 65 63 74 52 65 73 |..if (co|nnectRes|
|000005b0| 75 6c 74 20 3c 20 31 29 | 20 74 68 65 6e 20 65 78 |ult < 1)| then ex|
|000005c0| 69 74 20 72 65 70 65 61 | 74 0d 09 09 65 6e 64 20 |it repea|t...end |
|000005d0| 72 65 70 65 61 74 0d 09 | 09 0d 09 09 69 66 20 28 |repeat..|....if (|
|000005e0| 63 6f 6e 6e 65 63 74 52 | 65 73 75 6c 74 20 3d 20 |connectR|esult = |
|000005f0| 30 29 20 74 68 65 6e 0d | 09 09 09 0d 09 09 09 28 |0) then.|.......(|
|00000600| 2a 20 73 75 63 63 65 73 | 73 66 75 6c 20 63 6f 6e |* succes|sful con|
|00000610| 6e 65 63 74 69 6f 6e 21 | 20 20 59 6f 75 20 63 6f |nection!| You co|
|00000620| 75 6c 64 20 6f 70 65 6e | 20 6f 74 68 65 72 20 61 |uld open| other a|
|00000630| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 61 6e 64 20 |pplicati|ons and |
|00000640| 64 6f 63 75 6d 65 6e 74 | 73 20 68 65 72 65 2a 29 |document|s here*)|
|00000650| 0d 09 09 09 0d 09 09 09 | 28 2a 0d 09 09 09 09 6c |........|(*.....l|
|00000660| 6f 6f 70 20 61 6e 64 20 | 47 65 74 20 43 6f 6e 6e |oop and |Get Conn|
|00000670| 65 63 74 69 6f 6e 53 74 | 61 74 75 73 20 74 6f 20 |ectionSt|atus to |
|00000680| 73 65 65 20 77 68 65 6e | 20 77 65 20 64 69 73 63 |see when| we disc|
|00000690| 6f 6e 6e 65 63 74 0d 09 | 09 09 09 0d 09 09 09 09 |onnect..|........|
|000006a0| 41 70 70 6c 65 53 63 72 | 69 70 74 20 6e 6f 74 65 |AppleScr|ipt note|
|000006b0| 3a 20 59 6f 75 20 6d 61 | 79 20 77 61 6e 74 20 74 |: You ma|y want t|
|000006c0| 6f 20 63 61 6c 6c 0d 09 | 09 09 09 47 65 74 20 43 |o call..|...Get C|
|000006d0| 6f 6e 6e 65 63 74 53 74 | 61 74 75 73 20 69 6e 20 |onnectSt|atus in |
|000006e0| 61 6e 20 69 64 6c 65 20 | 68 61 6e 64 6c 65 72 20 |an idle |handler |
|000006f0| 69 6e 73 74 65 61 64 0d | 09 09 09 09 6f 66 20 61 |instead.|....of a|
|00000700| 20 72 65 70 65 61 74 20 | 6c 6f 6f 70 20 69 66 20 | repeat |loop if |
|00000710| 79 6f 75 20 61 72 65 20 | 77 72 69 74 69 6e 67 20 |you are |writing |
|00000720| 61 20 73 74 61 6e 64 61 | 6c 6f 6e 65 0d 09 09 09 |a standa|lone....|
|00000730| 09 41 70 70 6c 65 53 63 | 72 69 70 74 20 61 70 70 |.AppleSc|ript app|
|00000740| 6c 69 63 61 74 69 6f 6e | 2e 20 47 65 74 20 43 6f |lication|. Get Co|
|00000750| 6e 6e 65 63 74 53 74 61 | 74 75 73 0d 09 09 09 09 |nnectSta|tus.....|
|00000760| 72 65 61 6c 6c 79 20 6f | 6e 6c 79 20 6e 65 65 64 |really o|nly need|
|00000770| 73 20 74 6f 20 62 65 20 | 63 61 6c 6c 65 64 20 61 |s to be |called a|
|00000780| 62 6f 75 74 20 6f 6e 63 | 65 0d 09 09 09 09 65 76 |bout onc|e.....ev|
|00000790| 65 72 79 20 6f 6e 65 20 | 6f 72 20 74 77 6f 20 73 |ery one |or two s|
|000007a0| 65 63 6f 6e 64 73 2e 0d | 09 09 09 2a 29 0d 09 09 |econds..|...*)...|
|000007b0| 09 72 65 70 65 61 74 0d | 09 09 09 09 73 65 74 20 |.repeat.|....set |
|000007c0| 63 6f 6e 6e 65 63 74 53 | 74 61 74 75 73 20 74 6f |connectS|tatus to|
|000007d0| 20 28 47 65 74 20 43 6f | 6e 6e 65 63 74 69 6f 6e | (Get Co|nnection|
|000007e0| 53 74 61 74 75 73 29 0d | 09 09 09 09 69 66 20 28 |Status).|....if (|
|000007f0| 63 6f 6e 6e 65 63 74 53 | 74 61 74 75 73 20 3d 20 |connectS|tatus = |
|00000800| 30 29 20 74 68 65 6e 20 | 65 78 69 74 20 72 65 70 |0) then |exit rep|
|00000810| 65 61 74 0d 09 09 09 65 | 6e 64 20 72 65 70 65 61 |eat....e|nd repea|
|00000820| 74 0d 09 09 09 0d 09 09 | 09 69 66 20 28 63 6f 6e |t.......|.if (con|
|00000830| 6e 65 63 74 53 74 61 74 | 75 73 20 3d 20 30 29 20 |nectStat|us = 0) |
|00000840| 74 68 65 6e 0d 09 09 09 | 09 0d 09 09 09 09 28 2a |then....|......(*|
|00000850| 20 73 75 63 63 65 73 73 | 66 75 6c 20 64 69 73 63 | success|ful disc|
|00000860| 6f 6e 6e 65 63 74 69 6f | 6e 2e 20 59 6f 75 20 63 |onnectio|n. You c|
|00000870| 6f 75 6c 64 20 64 6f 20 | 70 6f 73 74 2d 63 6f 6e |ould do |post-con|
|00000880| 6e 65 63 74 69 6f 6e 20 | 73 74 75 66 66 20 68 65 |nection |stuff he|
|00000890| 72 65 20 2a 29 0d 09 09 | 09 09 0d 09 09 09 65 6e |re *)...|......en|
|000008a0| 64 20 69 66 0d 09 09 65 | 6e 64 20 69 66 0d 09 65 |d if...e|nd if..e|
|000008b0| 6e 64 20 69 66 0d 65 6e | 64 20 74 65 6c 6c 00 00 |nd if.en|d tell..|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 32 |........|.......2|
|00000910| 15 14 14 45 f8 3e 01 40 | f0 37 04 51 67 61 51 41 |...E.>.@|.7.QgaQA|
|00000920| 40 05 8f 3e 11 45 7f 35 | 04 05 16 15 14 14 00 45 |@..>.E.5|.......E|
|00000930| 18 73 61 6d 70 6c 65 20 | 63 6f 6e 6e 65 63 74 69 |.sample |connecti|
|00000940| 6f 6e 20 73 63 72 69 70 | 74 6e 02 00 00 00 54 45 |on scrip|tn....TE|
|00000950| 00 00 54 45 58 54 54 6f | 79 53 00 00 00 d8 03 08 |..TEXTTo|yS......|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 a9 3b c3 a4 00 00 | 08 3e 00 00 01 48 00 f8 |...;....|.>...H..|
|00000980| f0 45 17 8f 77 74 42 4b | 04 0f 88 f4 51 78 f7 77 |.E..wtBK|....Qx.w|
|00000990| 44 3f 2f 04 f8 87 5f 17 | 8f 77 74 44 40 2f 02 f8 |D?/..._.|.wtD@/..|
|000009a0| 75 1f 78 43 4b 03 f7 51 | 0f 8f f7 74 42 23 03 0f |u.xCK..Q|...tB#..|
|000009b0| 10 1f f0 0f 75 3f 2f 4b | 01 00 ff 9a 01 00 f7 40 |....u?/K|.......@|
|000009c0| 2f 2f 97 01 7f 00 2f 2f | 4b 36 4b ff 00 00 00 56 |//....//|K6K....V|
|000009d0| 61 73 63 72 00 00 00 00 | 00 03 61 70 6e 6d 0c 41 |ascr....|..apnm.A|
|000009e0| 70 70 6c 65 53 63 72 69 | 70 74 aa 00 6f 73 61 78 |ppleScri|pt..osax|
|000009f0| 12 73 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 |.scripti|ng addit|
|00000a00| 00 00 00 12 00 c9 02 03 | 03 06 03 e3 00 28 01 f7 |........|.....(..|
|00000a10| 03 63 04 5d 00 00 00 00 | 01 00 00 00 01 16 00 00 |.c.]....|........|
|00000a20| 00 16 00 00 00 32 00 62 | 6f 94 0b 64 00 00 00 1c |.....2.b|o..d....|
|00000a30| 00 32 00 00 57 50 6f 73 | 00 00 00 0a 00 80 ff ff |.2..WPos|........|
|00000a40| 00 00 00 00 00 62 6f cc | 00 00 00 00 00 00 00 00 |.....bo.|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+